<?php
 
class mySqlUtf8Db extends sfFilter
{
  public function execute ($filterChain)
  {    
    // execute this filter only once
    if( $this->isFirstCall() )
    {
      // do things
        $connection = Propel::getConnection();
        $stmt = $connection->prepareStatement('SET NAMES "utf8" COLLATE "utf8_unicode_ci"');
        $stmt->executeQuery();
        $stmt = $connection->prepareStatement('SET CHARSET "utf8"');
        $stmt->executeQuery();
	   }
 
    // execute next filter
	   $filterChain->execute();
    }
}

?>